package com.ant.storage.mapper;

import com.ant.storage.pojo.AllocationWarehouseEnter;
import com.ant.storage.pojo.AllocationWarehouseOut;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AllocationWarehouseEnterMapper extends BaseMapper<AllocationWarehouseEnter>{

    //入库单查询
    List<AllocationWarehouseEnter> queryAllocationWarehouseEnter(Integer newPage, Integer newLimit, @Param(value = "map") Map map);

    //入库中间表插入
    void updateAllocationAndCommodityEnter(Integer allocation_id, Integer commodityId, Integer commodity_enter_quantity, Integer enter_warehouse_id);

    Integer countAllocationWarehouseEnter(@Param(value = "map")Map map);
}
